.class public Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Landroid/widget/TextView;

.field private b:Landroid/widget/ImageView;

.field private c:Landroid/widget/ListView;

.field private d:Landroid/widget/Button;

.field private e:Landroid/widget/Button;

.field private f:Landroid/widget/Button;

.field private g:Lcom/waiqin365/lightapp/deptmanager/c/a;

.field private h:Lcom/waiqin365/lightapp/deptmanager/a/a;

.field private i:Ljava/util/List;

.field private j:Z


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->i:Ljava/util/List;

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->j:Z

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;)Landroid/widget/ListView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->c:Landroid/widget/ListView;

    return-object v0
.end method

.method private a()V
    .locals 1

    const v0, 0x7f0c0692

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->a:Landroid/widget/TextView;

    const v0, 0x7f0c0693

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->b:Landroid/widget/ImageView;

    const v0, 0x7f0c0539

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->c:Landroid/widget/ListView;

    const v0, 0x7f0c0694

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->d:Landroid/widget/Button;

    const v0, 0x7f0c0695

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->e:Landroid/widget/Button;

    const v0, 0x7f0c0691

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->f:Landroid/widget/Button;

    return-void
.end method

.method private a(Z)V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->g:Lcom/waiqin365/lightapp/deptmanager/c/a;

    if-eqz v0, :cond_0

    if-eqz p1, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->g:Lcom/waiqin365/lightapp/deptmanager/c/a;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/deptmanager/c/a;->f:Z

    if-eqz v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->mContext:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightapp/deptmanager/DMAddDeptActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "superDeptName"

    iget-object v2, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->g:Lcom/waiqin365/lightapp/deptmanager/c/a;

    iget-object v2, v2, Lcom/waiqin365/lightapp/deptmanager/c/a;->d:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "superDeptId"

    iget-object v2, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->g:Lcom/waiqin365/lightapp/deptmanager/c/a;

    iget-object v2, v2, Lcom/waiqin365/lightapp/deptmanager/c/a;->a:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "isModify"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method private b()V
    .locals 6

    const/16 v5, 0x8

    const/4 v4, 0x1

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->i:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "deptId"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/waiqin365/lightapp/deptmanager/d/a;->b(Ljava/lang/String;)Lcom/waiqin365/lightapp/deptmanager/c/a;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->g:Lcom/waiqin365/lightapp/deptmanager/c/a;

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->g:Lcom/waiqin365/lightapp/deptmanager/c/a;

    if-eqz v0, :cond_6

    iget-object v1, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->a:Landroid/widget/TextView;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->g:Lcom/waiqin365/lightapp/deptmanager/c/a;

    iget-object v2, v2, Lcom/waiqin365/lightapp/deptmanager/c/a;->d:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v2, "  ("

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->g:Lcom/waiqin365/lightapp/deptmanager/c/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/deptmanager/c/a;->e:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1

    const-string/jumbo v0, "0"

    :goto_0
    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v2, ")"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->i:Ljava/util/List;

    iget-object v1, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->g:Lcom/waiqin365/lightapp/deptmanager/c/a;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/deptmanager/c/a;->a()Ljava/util/List;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->h:Lcom/waiqin365/lightapp/deptmanager/a/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/deptmanager/a/a;->notifyDataSetChanged()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->g:Lcom/waiqin365/lightapp/deptmanager/c/a;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/deptmanager/c/a;->f:Z

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->b:Landroid/widget/ImageView;

    invoke-virtual {v0, v5}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->d:Landroid/widget/Button;

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->e:Landroid/widget/Button;

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setEnabled(Z)V

    :goto_1
    iget-boolean v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->j:Z

    if-eqz v0, :cond_0

    iput-boolean v3, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->j:Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->c:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->h:Lcom/waiqin365/lightapp/deptmanager/a/a;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/deptmanager/a/a;->getCount()I

    move-result v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->c:Landroid/widget/ListView;

    invoke-virtual {v2}, Landroid/widget/ListView;->getHeaderViewsCount()I

    move-result v2

    add-int/2addr v1, v2

    iget-object v2, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->c:Landroid/widget/ListView;

    invoke-virtual {v2}, Landroid/widget/ListView;->getFooterViewsCount()I

    move-result v2

    add-int/2addr v1, v2

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->smoothScrollToPosition(I)V

    :cond_0
    :goto_2
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->g:Lcom/waiqin365/lightapp/deptmanager/c/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/deptmanager/c/a;->e:Ljava/lang/String;

    goto :goto_0

    :cond_2
    sget-boolean v0, Lcom/waiqin365/lightapp/deptmanager/w;->g:Z

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->d:Landroid/widget/Button;

    invoke-virtual {v0, v4}, Landroid/widget/Button;->setEnabled(Z)V

    :goto_3
    sget-boolean v0, Lcom/waiqin365/lightapp/deptmanager/w;->i:Z

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->b:Landroid/widget/ImageView;

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    :goto_4
    sget-boolean v0, Lcom/waiqin365/lightapp/deptmanager/w;->h:Z

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->e:Landroid/widget/Button;

    invoke-virtual {v0, v4}, Landroid/widget/Button;->setEnabled(Z)V

    goto :goto_1

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->d:Landroid/widget/Button;

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setEnabled(Z)V

    goto :goto_3

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->b:Landroid/widget/ImageView;

    invoke-virtual {v0, v5}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_4

    :cond_5
    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->e:Landroid/widget/Button;

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setEnabled(Z)V

    goto :goto_1

    :cond_6
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->back()V

    goto :goto_2
.end method

.method private c()V
    .locals 2

    const v0, 0x7f0c007c

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->d:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->e:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->b:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->f:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->c:Landroid/widget/ListView;

    new-instance v1, Lcom/waiqin365/lightapp/deptmanager/ac;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/deptmanager/ac;-><init>(Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4

    const/4 v3, 0x0

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->back()V

    goto :goto_0

    :sswitch_1
    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->a(Z)V

    goto :goto_0

    :sswitch_2
    invoke-direct {p0, v3}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->a(Z)V

    goto :goto_0

    :sswitch_3
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->mContext:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "deptId"

    iget-object v2, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->g:Lcom/waiqin365/lightapp/deptmanager/c/a;

    iget-object v2, v2, Lcom/waiqin365/lightapp/deptmanager/c/a;->a:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    :sswitch_4
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->mContext:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "isModify"

    invoke-virtual {v0, v1, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v1, "deptId"

    iget-object v2, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->g:Lcom/waiqin365/lightapp/deptmanager/c/a;

    iget-object v2, v2, Lcom/waiqin365/lightapp/deptmanager/c/a;->a:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "deptName"

    iget-object v2, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->g:Lcom/waiqin365/lightapp/deptmanager/c/a;

    iget-object v2, v2, Lcom/waiqin365/lightapp/deptmanager/c/a;->d:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    :sswitch_data_0
    .sparse-switch
        0x7f0c007c -> :sswitch_0
        0x7f0c0691 -> :sswitch_3
        0x7f0c0693 -> :sswitch_1
        0x7f0c0694 -> :sswitch_2
        0x7f0c0695 -> :sswitch_4
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    const v0, 0x7f030120

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->setContentView(I)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->c()V

    const v0, 0x7f0c007e

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const v1, 0x7f080179

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    new-instance v0, Lcom/waiqin365/lightapp/deptmanager/a/a;

    iget-object v1, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->mContext:Landroid/content/Context;

    iget-object v2, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->i:Ljava/util/List;

    invoke-direct {v0, v1, v2}, Lcom/waiqin365/lightapp/deptmanager/a/a;-><init>(Landroid/content/Context;Ljava/util/List;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->h:Lcom/waiqin365/lightapp/deptmanager/a/a;

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->c:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->h:Lcom/waiqin365/lightapp/deptmanager/a/a;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->b()V

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/fiberhome/gaea/client/a/b;->addObserver(Ljava/util/Observer;)V

    return-void
.end method

.method protected onDestroy()V
    .locals 3

    const-string/jumbo v0, "-1"

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "deptId"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-static {}, Lcom/waiqin365/lightapp/deptmanager/w;->a()V

    :cond_0
    invoke-super {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onDestroy()V

    return-void
.end method

.method public refreshActivity(Lcom/fiberhome/gaea/client/a/c;)V
    .locals 3

    iget-object v0, p1, Lcom/fiberhome/gaea/client/a/c;->b:Ljava/lang/Object;

    if-eqz v0, :cond_0

    iget-object v0, p1, Lcom/fiberhome/gaea/client/a/c;->b:Ljava/lang/Object;

    instance-of v0, v0, Ljava/lang/Boolean;

    if-eqz v0, :cond_0

    iget-object v0, p1, Lcom/fiberhome/gaea/client/a/c;->b:Ljava/lang/Object;

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->j:Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->c:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->h:Lcom/waiqin365/lightapp/deptmanager/a/a;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/deptmanager/a/a;->getCount()I

    move-result v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->c:Landroid/widget/ListView;

    invoke-virtual {v2}, Landroid/widget/ListView;->getHeaderViewsCount()I

    move-result v2

    add-int/2addr v1, v2

    iget-object v2, p0, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->c:Landroid/widget/ListView;

    invoke-virtual {v2}, Landroid/widget/ListView;->getFooterViewsCount()I

    move-result v2

    add-int/2addr v1, v2

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->smoothScrollToPosition(I)V

    :cond_0
    invoke-direct {p0}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->b()V

    return-void
.end method
